cmake_minimum_required( VERSION 2.6 )
project(vengine)

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

if(MINGW OR UNIX)
add_definitions(-ansi -pedantic)
add_definitions(-march=i686 -msse2)
endif()

include_directories(include)
include(include/vengine.cmake)
include(src/vengine.cmake)
add_library(vengine ${VE_HEADERS} ${VE_SOURCES})

enable_testing()
include_directories(tests)
add_subdirectory(tests)
